const mongoose = require("mongoose");

const replySchema = mongoose.Schema({
    authorId:{
        type:String,
        required:true
    }, 
    diaryItemId: {
        type: String,
        required: true
    },
    createAt:{
        type:Date,
        default:Date.now()
    },
    content:{
        type:String,
        required:true
    }
})

const replyModel = mongoose.model("reply" , replySchema);

module.exports = replyModel;